package com.sgcc.fj.pmos.common.dialog;

import android.content.Context;
import android.view.View;

import com.lxj.xpopup.core.CenterPopupView;
import com.lxj.xpopup.util.XPopupUtils;
import com.sgcc.pmos.nativesdk.R;



/**
 * 历史电量列表弹窗
 */
public class PriceTipickPopView extends CenterPopupView {
    Context context;
    public PriceTipickPopView(Context context) {
        super(context);
        this.context = context;
    }


    @Override
    protected int getImplLayoutId() {
        return R.layout.price_titpick_pop;
    }

    @Override
    protected void onCreate() {
        super.onCreate();

        findViewById(R.id.close_img).setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View view) {
                PriceTipickPopView.this.dismiss();
            }
        });
        findViewById(R.id.imgLineChartClose).setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View view) {
                PriceTipickPopView.this.dismiss();
            }
        });
    }



    @Override
    protected void onShow() {
        super.onShow();
    }

    @Override
    protected void onDismiss() {
        super.onDismiss();
    }


    @Override
    protected int getPopupWidth() {
        return (int) (XPopupUtils.getScreenHeight(getContext()) * .5f);
    }


    public interface OnListener {
        /**
         * 点击确定按钮事件
         */
        void onPositiveClick(PriceTipickPopView pop, boolean ischeck);
    }


}